package com.surekam.dma.entity.dma.list;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.surekam.dma.entity.IdEntity;

@Entity
//表名与类名不相同时重新定义表名.
@Table(name ="acct_contentinfo")
//默认的缓存策略.
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Directory extends IdEntity{
	
	private Long pid ;//父节点标志码
	private String name;//目录名称
	private String url ;//链接地址
	private String describe ;//描述
	private int ordernum ;//排序序号  就是几级目录
	private int shownum ;//显示序号
	
	public Long getPid() {
		return pid;
	}
	public void setPid(Long pid) {
		this.pid = pid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getDescribe() {
		return describe;
	}
	public void setDescribe(String describe) {
		this.describe = describe;
	}
	public int getOrdernum() {
		return ordernum;
	}
	public void setOrdernum(int ordernum) {
		this.ordernum = ordernum;
	}
	public int getShownum() {
		return shownum;
	}
	public void setShownum(int shownum) {
		this.shownum = shownum;
	}
	//不写此方法数据显示不出
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	 
}
